package com.abel.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Abel.lin
 * Date: Created in 2018/5/31 15:49
 * Company: Abel.Studio
 * Copyright: Copyright (c) 2017
 * Description:
 */
@Controller
public class IndexController {
    @ResponseBody
    @RequestMapping("")
    public String index(){
        return "index";
    }

    @RequestMapping("home")
    public String home(ModelMap mMap){
        return "home";
    }

    @ResponseBody
    @RequestMapping("channel")
    public String channel(ModelMap mMap){

        return "channel";
    }
}
